﻿using System;
using System.Text;
using System.Data;
using CRMFramework;

namespace CRMBiz
{
    public static class ApplicationRecentHandler
    {
        public static DataSet GetRecentRecord(int totallimit, int OperatorID)
        {
            DataSet ds;
            try
            {
                var para = new[] 
                {
                    DBhelper.SetParameter("@totallimit", totallimit) ,
                    DBhelper.SetParameter("@OperatorID",OperatorID)

                };
                ds = DBhelper.ExecuteDatasetSP("sp_GetRecentRecord", para);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return ds;
        }
    }
}
